package com.hongxun.modules.csg.entity.dxf;

/**
 * Created by xiaoji on 2016/3/23.
 * 线图元
 */
public class Line{
    private String id;//句柄
    private String x10;//起点（在 WCS 中）DXF：X 值；APP：三维点
    private String y20;//起点（在 WCS 中）DXF：Y 值；APP：三维点
    private String z30;//起点（在 WCS 中）DXF：Z 值；APP：三维点
    private String x11;//终点（在 WCS 中）DXF：X 值；APP：三维点
    private String y21;//终点（在 WCS 中）DXF：Y 值；APP：三维点
    private String z31;//终点（在 WCS 中）DXF：Z 值；APP：三维点
    private String stroke62="250";//颜色
    private String layer="0";//图层 虚线
    private String lineWidth;//线宽

    public Line(String x10, String y20, String x11, String y21) {
        this.x10 = Double.parseDouble(x10)* Dxf.xishu+"";
        this.y20 = Double.parseDouble(y20)* Dxf.xishu+"";
        this.z30 = "0.0";
        this.x11 = Double.parseDouble(x11)*Dxf.xishu+"";;
        this.y21 = Double.parseDouble(y21)*Dxf.xishu+"";;
        this.z31 = "0.0";
    }

    public Line(String x10, String y20, String z30, String x11, String y21, String z31) {
        this.x10 = x10;
        this.y20 = y20;
        this.z30 = z30;
        this.x11 = x11;
        this.y21 = y21;
        this.z31 = z31;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getX10() {
        return x10;
    }

    public void setX10(String x10) {
        this.x10 = x10;
    }

    public String getY20() {
        return y20;
    }

    public void setY20(String y20) {
        this.y20 = y20;
    }

    public String getZ30() {
        return z30;
    }

    public void setZ30(String z30) {
        this.z30 = z30;
    }

    public String getX11() {
        return x11;
    }

    public void setX11(String x11) {
        this.x11 = x11;
    }

    public String getY21() {
        return y21;
    }

    public void setY21(String y21) {
        this.y21 = y21;
    }

    public String getZ31() {
        return z31;
    }

    public void setZ31(String z31) {
        this.z31 = z31;
    }

    public String getStroke62() {
        return stroke62;
    }

    public void setStroke62(String stroke62) {
        this.stroke62 = stroke62;
    }

    public String getLayer() {
        return layer;
    }

    public void setLayer(String layer) {
        this.layer = layer;
    }

    public String getLineWidth() {
        return lineWidth;
    }

    public void setLineWidth(String lineWidth) {
        this.lineWidth = lineWidth;
    }
}
